Make GtkPlug use GtkStyleContext
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 4 Jan 2011 01:12:11 +0000 (02:12 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 4 Jan 2011 02:06:15 +0000 (03:06 +0100)
gtk/gtkplug.c

index 174375fcba763b1a532affb4805e48ce936a3dee..8fbcfbd820cd48c188f3bef648f0abafd0902ab4 100644 (file)
@@ -728,9 +728,8 @@ gtk_plug_realize (GtkWidget *widget)
 
   gdk_window_set_user_data (gdk_window, window);
 
-  gtk_widget_style_attach (widget);
-  gtk_style_set_background (gtk_widget_get_style (widget),
-                            gdk_window, GTK_STATE_NORMAL);
+  gtk_style_context_set_background (gtk_widget_get_style_context (widget),
+                                    gdk_window);
 
   gdk_window_enable_synchronized_configure (gdk_window);
 }